package edu.tum.cs.i1.pse;

public class CryptoSystem {

	private Encryption imp;
	
	public CryptoSystem(String encryptionType) {
		imp = Encryption.getEncryption(encryptionType);
	}

	public String encryptDoc(String plain, byte key) {
		return imp.encryptWord(plain, key);
	}

	public String decryptDoc(String secret, byte key) {
		return imp.decryptWord(secret, key);
	}

}
